]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overview: Skip SHOWN to SHOWN when changing from app grid to overview
authorSebastian Keller <skeller@gnome.org>
Tue, 20 Dec 2022 12:49:59 +0000 (13:49 +0100)
committerMarge Bot <marge-bot@gnome.org>
Sun, 12 Feb 2023 16:31:04 +0000 (16:31 +0000)
Switching between the app grid and the window picker in the overview via
gestures results in _gestureEnd() getting called with endProgress !== 0
in both cases, which leads to it calling _showDone(). This then
unconditionally changes the state to SHOWN, which in this situation is
already the current state. Since the previous commit this results in a
warning, so check if we are already in the SHOWN state.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2514>

js/ui/overview.js

index 4966cdb6946f62a160603d6cc9d63d93da98fa00..4dd59d4ae2bf8c7610a3a57c4b74d99e849a2c76 100644 (file)
@@ -573,7 +573,9 @@ var Overview = class extends Signals.EventEmitter {
         this._animationInProgress = false;
         this._coverPane.hide();
 
-        this._changeShownState(OverviewShownState.SHOWN);
+        if (this._shownState !== OverviewShownState.SHOWN)
+            this._changeShownState(OverviewShownState.SHOWN);
+
         // Handle any calls to hide* while we were showing
         if (!this._shown)
             this._animateNotVisible();